﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using DataAccessLayer.Models;

namespace PresentationLayerMVC.Controllers
{
    public class PersonalGuaranteeController : BaseController
    {
        //
        // GET: /PersonalGuarantee/Create

        public ActionResult Create()
        {
            initDisplay();
            return View();
        }

        //
        // POST: /PersonalGuarantee/Create

        [HttpPost]
        public ActionResult Create(FormCollection collection)
        {
            IValueProvider info = collection.ToValueProvider();
            PutAppModelInSession(INFO_SEC, info);
            PutSecurityTypeInSession("PG");

            return Next(Constants.ACT_ADDSECURITY_PG);
        }
    }
}
